package com.mazaiting.auth.constant;

/**
 * 认证常量池
 *
 * @author mazaiting
 * @create_time 2022/8/27 13:29
 */
public class AuthConstant {
    /**
     * 登录 ID
     */
    public static final String AUTH_LOGIN_ID = "authLoginId";
    /**
     * 认证标识信息
     */
    public static final String AUTH_AUTHENTICATION_IDENTITY = "authAuthenticationIdentity";
    /**
     * 超级管理员 用户ID
     */
    public static final Long AUTH_ROOT_ID = 1L;
    /**
     * 超级管理员 角色ID
     */
    public static final Long AUTH_ROLE_ID = 1L;
    /**
     * -1
     */
    public static final Long NEGATIVE_ONE = -1L;
    /**
     * 0
     */
    public static final Long ZERO = 0L;

    /**
     * [ {接口路径:[角色编码]},...]
     */
    public static final String URL_PERM_ROLES_KEY = "permission:url";

    /**
     * [{按钮权限标识:[角色编码]},...]
     */
    public static final String BTN_PERM_ROLES_KEY = "permission:btn";
}
